﻿<%@ Page Title="Admin Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="AdminPage.aspx.cs" Inherits="AddTC" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script type="text/javascript">
    </script>
    <style type="text/css">
        div .divRepeater
        {
            margin-top: 20px;
            margin-left: 35px;
        }
        .modalBackground
        {
            height: 100%;
            left: 0;
            position: absolute;
            top: 0;
            width: 100%;
            z-index: 10000;
            background-color: black;
            opacity: 0.3;
            filter: alpha(opacity=30);
        }
        .stylePopup
        {
            background-color: #fff;
            height: auto;
            width: 350px;
            top: 170px;
            left: 500px;
            margin: 10px auto;
            position: absolute;
            z-index: 10001;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div style="text-align: center">
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
            <asp:ListItem Value="keyboard">Bàn phím</asp:ListItem>
            <asp:ListItem Value="touchpad">TouchPad</asp:ListItem>
            <asp:ListItem Value="screen">Màn hình</asp:ListItem>
            <asp:ListItem Value="otherHardware">Phần cứng khác</asp:ListItem>
            <asp:ListItem Value="os">Hệ điều hành</asp:ListItem>
        </asp:DropDownList>
        <asp:Button runat="server" ID="btnThemTrieuChung" Text="Thêm Triệu Chứng" Style="margin-left: 10px"
            OnClick="btnThemTrieuChung_Click" />
    </div>
    <div id="radioButton" style="padding-top: 25px">
        <asp:RadioButtonList ID="radioButtonList" runat="server" RepeatDirection="Vertical"
            OnSelectedIndexChanged="radioButtonList_SelectedIndexChanged" AutoPostBack="true">
        </asp:RadioButtonList>
    </div>
    <br />
    <div id="divLine" style="display: none" runat="server">
        <hr style="color: Red" />
    </div>
    <div id="divButtonThemNguyenNhan" runat="server" style="display: none">
        <asp:Button Text="Thêm Nguyên Nhân" runat="server" ID="btnThemNguyenNhan" OnClick="btnThemNguyenNhan_Click" />
    </div>
    <div class="divRepeater">
        <asp:Repeater ID="rptNguyenNhan" runat="server" OnItemCommand="rptNguyenNhan_ItemCommand">
            <ItemTemplate>
                <asp:Label ID="lbNguyenNhan" runat="server"><%# Eval("NguyenNhan") %></asp:Label>
                <asp:Label ID="lbCF" runat="server">(<%# Eval("CF") %>)</asp:Label>
                <br />
                <asp:Label ID="lbKhacPhuc" runat="server"><%# Eval("KhacPhuc") %></asp:Label>
                <asp:Button Text="Edit" ID="btnEdit" runat="server" Style="margin-bottom: 10px" OnClick="btnEdit_Click"
                    CommandArgument='<%# Eval("ID") %>' />
                <asp:Button Text="Delete" ID="btnDelete" runat="server" OnClick="btnDelete_Click" CommandArgument='<%#Eval("ID") %>' />
                <br />
            </ItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div id="PopupEdit" runat="server" style="display: none">
        <div class="stylePopup">
            <asp:Panel ID="panel2" runat="server" Width="370px" BackColor="#C0C0C0">
                <div style="background-color: #FFFFFF">
                    <div style="background-color: #4B6C9E; font-weight: bolder; font-size: medium; text-align: center;"
                        align="center">
                        <asp:Label Style="color: Red" runat="server">EDIT</asp:Label>
                    </div>
                    <br />
                    <div id="divSpan" runat="server" style="text-align: center; color: Red">
                        <span style="display: none; text-align: center" runat="server" id="span1">Có trường
                            null !!!</span><br />
                        <span style="display: none; color: Red" runat="server" id="span2">CF không hợp lý !!!</span><br />
                    </div>
                    <asp:Label Style="margin-left: 5px" runat="server">Nguyên nhân:</asp:Label>
                    <asp:TextBox ID="txtNguyenNhan" runat="server" Width="261px"></asp:TextBox><br />
                    <br />
                    <asp:Label Style="margin-left: 5px" runat="server">Khắc phục:</asp:Label>
                    <asp:TextBox ID="txtKhacPhuc" runat="server" Width="261px" Style="margin-left: 16.5px"></asp:TextBox><br />
                    <br />
                    <asp:Label Style="margin-left: 5px" runat="server">CF:</asp:Label>
                    <asp:TextBox ID="txtCF" runat="server" Width="42px" Style="margin-left: 62.5px"></asp:TextBox><br />
                    <br />
                    <div align="center" style="text-align: justify">
                        <asp:Button ID="btnOK" runat="server" class="button" Style="text-align: center; margin-left: 70px;
                            margin-bottom: 10px" Text="OK" Width="80px" BackColor="#4B6C9E" OnClick="btnOK_Click" />
                        <asp:Button ID="btnCancel" runat="server" class="button" Style="text-align: center;
                            margin-left: 65px; margin-bottom: 10px" Text="Cancel" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnCancel_Click" />
                    </div>
                </div>
            </asp:Panel>
        </div>
        <div class="modalBackground" id="ModalBackground">
        </div>
    </div>
    <div id="PopupThemTrieuChung" runat="server" style="display: none">
        <div class="stylePopup">
            <asp:Panel ID="panel1" runat="server" Width="370px" BackColor="#C0C0C0">
                <div style="background-color: #FFFFFF">
                    <div style="background-color: #4B6C9E; font-weight: bolder; font-size: medium; text-align: center;"
                        align="center">
                        <asp:Label ID="Label1" Style="color: Red" runat="server">THÊM TRIỆU CHỨNG</asp:Label>
                    </div>
                    <br />
                    <div id="div1" runat="server" style="text-align: center; color: Red">
                        <span style="display: none; text-align: center" runat="server" id="span3">Có trường
                            null !!!</span><br />
                        <span style="display: none; color: Red" runat="server" id="span4">CF không hợp lý !!!</span><br />
                    </div>
                    <asp:Label ID="lblTrieuChung" runat="server" Style="margin-left: 5px">Triệu chứng:</asp:Label>
                    <asp:TextBox ID="txtTrieuChung" runat="server" Style="margin-left: 8px" Width="261px"></asp:TextBox><br />
                    <br />
                    <asp:Label ID="Label2" Style="margin-left: 5px" runat="server">Nguyên nhân:</asp:Label>
                    <asp:TextBox ID="TextBox1" runat="server" Width="261px"></asp:TextBox><br />
                    <br />
                    <asp:Label ID="Label3" Style="margin-left: 5px" runat="server">Khắc phục:</asp:Label>
                    <asp:TextBox ID="TextBox2" runat="server" Width="261px" Style="margin-left: 16.5px"></asp:TextBox><br />
                    <br />
                    <asp:Label ID="Label4" Style="margin-left: 5px" runat="server">CF:</asp:Label>
                    <asp:TextBox ID="TextBox3" runat="server" Width="42px" Style="margin-left: 62.5px"></asp:TextBox><br />
                    <br />
                    <div align="center" style="text-align: justify">
                        <asp:Button ID="Button1" runat="server" class="button" Style="text-align: center;
                            margin-left: 70px; margin-bottom: 10px" Text="OK" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnOK_Click2" />
                        <asp:Button ID="Button2" runat="server" class="button" Style="text-align: center;
                            margin-left: 65px; margin-bottom: 10px" Text="Cancel" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnCancel_Click2" />
                    </div>
                </div>
            </asp:Panel>
        </div>
        <div class="modalBackground" id="Div3">
        </div>
    </div>
    <div id="PopupThongBao" runat="server" style="display: none">
        <div class="stylePopup">
            <asp:Panel ID="panel3" runat="server" Width="370px" BackColor="#C0C0C0">
                <div style="background-color: #FFFFFF">
                    <div style="background-color: #4B6C9E; font-weight: bolder; font-size: medium; text-align: center;"
                        align="center">
                        <asp:Label ID="Label5" Style="color: Red" runat="server">Thông Báo</asp:Label>
                    </div>
                    <br />
                    <div style="text-align: center">
                        <asp:Label ID="Label6" runat="server">Không thể thêm nguyên nhân (Tổng CF đã bằng 1)</asp:Label>
                    </div>
                    <br />
                    <div align="center" style="text-align: justify">
                        <asp:Button ID="Button3" runat="server" class="button" Style="text-align: center;
                            margin-left: 150px; margin-bottom: 10px" Text="OK" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnOK_Click3" />
                    </div>
                </div>
            </asp:Panel>
        </div>
        <div class="modalBackground" id="Div5">
        </div>
    </div>
    <div id="PopupThemNguyenNhan" runat="server" style="display: none">
        <div class="stylePopup">
            <asp:Panel ID="panel4" runat="server" Width="370px" BackColor="#C0C0C0">
                <div style="background-color: #FFFFFF">
                    <div style="background-color: #4B6C9E; font-weight: bolder; font-size: medium; text-align: center;"
                        align="center">
                        <asp:Label ID="Label7" Style="color: Red" runat="server">THÊM NGUYÊN NHÂN</asp:Label>
                    </div>
                    <br />
                    <div id="div4" runat="server" style="text-align: center; color: Red">
                        <span style="display: none; text-align: center" runat="server" id="span5">Có trường
                            null !!!</span><br />
                        <span style="display: none; color: Red" runat="server" id="span6">CF không hợp lý !!!</span><br />
                    </div>
                    <asp:Label ID="Label8" Style="margin-left: 5px" runat="server">Nguyên nhân:</asp:Label>
                    <asp:TextBox ID="TextBox4" runat="server" Width="261px"></asp:TextBox><br />
                    <br />
                    <asp:Label ID="Label9" Style="margin-left: 5px" runat="server">Khắc phục:</asp:Label>
                    <asp:TextBox ID="TextBox5" runat="server" Width="261px" Style="margin-left: 16.5px"></asp:TextBox><br />
                    <br />
                    <asp:Label ID="Label10" Style="margin-left: 5px" runat="server">CF:</asp:Label>
                    <asp:TextBox ID="TextBox6" runat="server" Width="42px" Style="margin-left: 62.5px"></asp:TextBox><br />
                    <br />
                    <div align="center" style="text-align: justify">
                        <asp:Button ID="Button4" runat="server" class="button" Style="text-align: center;
                            margin-left: 70px; margin-bottom: 10px" Text="OK" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnOK_Click4" />
                        <asp:Button ID="Button5" runat="server" class="button" Style="text-align: center;
                            margin-left: 65px; margin-bottom: 10px" Text="Cancel" Width="80px" BackColor="#4B6C9E"
                            OnClick="btnCancel_Click4" />
                    </div>
                </div>
            </asp:Panel>
        </div>
        <div class="modalBackground" id="Div6">
        </div>
    </div>
</asp:Content>
